<template>
	<div class="mine">
		<div class="mine-header">
			<img src="../assets/login/login-img.png" />
		</div>
		<div class="mine-mianban">
			<div class="mianabn-img">
				<img src="../assets/mine/25b198166d9a54158b889e94b6e637b0.jpg" />
			</div>
			<div class="mine-name">
				<span class="name">热心市民张慧娟</span>
				<span class="name-level">✪ 16</span>
			</div>
			<div class="mine-id">
				<p>ID: 1069643013</p>
			</div>
			<div class="mainban-table">
				<div class="table1" v-for="item in talist1">
					<p>{{item.name}}</p>
					<span>{{item.sum}}</span>
				</div>
			</div>
		</div>
		<div class="mine-mianban2">
			<div class="mianban2-table">
				<img src="../assets/home/qianbao.png" class="mianban2-icon" />
				<span>我的钱包</span>
				<img src="../assets/home/jiantou.png" />
			</div>
			<div class="mianban2-table">
				<img src="../assets/home/dingwei.png" class="mianban2-icon" />
				<span>我的地址</span>
				<router-link to="/address">
					<img src="../assets/home/jiantou.png" />
				</router-link>
			</div>
			<div class="mianban2-table">
				<img src="../assets/home/user.png" class="mianban2-icon" />
				<span>客服与帮助</span>
				<img src="../assets/home/jiantou.png" />
			</div>
		</div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				talist1:[
					{
						name:"红包",
						sum:"218"
					},{
						name:"优惠券",
						sum:"12张"
					},{
						name:"鲜豆",
						sum:"88"
					},
					{
						name:"白条",
						sum:"1000"
					}
				]
			}
		}
	}
</script>

<style>
	.mine-header {
		height: 250px;
		background-image: linear-gradient(239deg, #3A6FF3 0%, #50C7FB 100%);
		border-bottom-right-radius: 250px;
		border-bottom-left-radius: 250px;
	}

	.mine-header img {
		width: 18px;
		height: 18px;
		margin-left: 330px;
		margin-top: 57px;
	}

	.mine-mianban {
		background: #FFFFFF;
		box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
		border-radius: 8px;
		height: 203px;
		display: flex;
		margin-left: 18px;
		margin-right: 18px;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		margin-top: -142px;
	}

	.mianabn-img {
		height: 96px;
		margin-top: -136px;
	}

	.mine-mianban img {
		width: 96px;
		height: 96px;
		margin-bottom: 156px;
		border-radius: 50%;
	}

	.mine-name {
		padding-top: 12px;
		display: flex;
		align-items: flex-end;
	}

	.mine-name .name {
		font-size: 24px;
		padding-left: 85px;
	}

	.name-level {
		width: 35px;
		height: 15px;
		font-size: 10px;
		background-image: linear-gradient(180deg, #BEE700 0%, #8ACA00 100%);
		border-radius: 100px;
		margin-left: 5px;
		margin-right: 34px;
	}

	.mine-id {
		padding-top: 2px;
		font-size: 14px;
		color: #C1C0C9;
		text-align: center;
		padding-bottom: 12px;
	}

	.mainban-table {
		width: 100%;
		display: flex;
		justify-content: space-around;
		margin-left: 28px;
		margin-right: 28px;
		border-top: 1px solid #C1C0C9;
	}

	.table1 {
		padding-top: 12px;
		align-items: center;
		text-align: center;
		margin-bottom: -96px;
	}

	.table1 p {
		font-size: 12px;
		color: #C1C0C9;
	}

	.table1 span {
		font-size: 20px;
		color: #262628;
	}

	.mine-mianban2 {
		background: #FFFFFF;
		box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
		border-radius: 8px;
		margin-left: 18px;
		margin-right: 18px;
		margin-top: 16px;
		width: 339;
		height: 146px;
		padding-bottom: 16px;
	}
	.mianban2-table{
		display: flex;
		justify-content: space-between;
		align-items: flex-end;
		padding-left: 16px;
		padding-right: 16px;
		padding-top: 16px;
		flex-direction: row; 
	}
	.mianban2-table .mianban2-icon{
		margin-right: 12px;
	}
	.mianban2-table span{
		font-size: 12px;
		flex: 20;
	}
</style>
